package com.naiterui.ehp.bs.wechat.protocol.result;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 永久素材上传结果
 * @author zhoupeipei
 * @date 2019-07-05 16:33
 * @since 1.0.0
 */
//@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class MaterialUpResult extends BaseResult {
    private static final long serialVersionUID = -8611597953577128413L;
    private String type;
    /**
     * 新增的永久素材的media_id
     */
    @JsonProperty("media_id")
    private String mediaId;
    /**
     * 新增的图片素材的图片URL（仅新增图片素材时会返回该字段）
     */
    @JsonProperty("url")
    private String url;
    /**
     * 视频素材的标题
     */
    private String title;
    /**
     * 视频素材的描述
     */
    private String introduction;


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getMediaId() {
        return mediaId;
    }

    public void setMediaId(String mediaId) {
        this.mediaId = mediaId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
